package com.hopu.day07springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.User;

import java.util.ArrayList;
import java.util.List;

@RestController
public class register {

    List<User> userList = new ArrayList<>();

    @RequestMapping("/register")
    public List<User> userRegister(User user){
        System.out.println(user);
        userList.add(user);
        return userList;
    }

}
